<?php
// Register table
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'tables' . DS);

// Register helper class
JLoader::register('ManagerHelper', dirname(__FILE__) . '/helpers/manager.php');

define('_ES_CSV_DELIMITER', ',');
define('_ES_CSV_QUOTE', '"');

JHTML::_('behavior.modal');
JHTML::_('behavior.calendar');

$controllerName = JRequest::getWord('c');

switch ($controllerName) {    
	default:
		$controllerName = 'product';
	case 'product':
	case 'config':
	case 'sms':    	
         
		require_once(JPATH_COMPONENT_ADMINISTRATOR . DS . 'controllers' . DS . $controllerName . '.php');
		$class_name = 'ManagerController' . $controllerName;
		$controller = new $class_name();
		$controller->execute( JRequest::getVar( 'task' ) );
		$controller->redirect();
}
?>